﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AppAcc.Models;

namespace AppAcc.MuaHang
{
    public partial class FrmXuatKho : Form
    {
        private AppAccContext db = new AppAccContext();
        private int idtam = 0;
        public FrmXuatKho()
        {
            InitializeComponent();
        }
        void GetListNhanVien()
        {
            cbb_NhanVien.DataSource = db.NhanViens.ToList();
            cbb_NhanVien.DisplayMember = "TenNhanVien";
            cbb_NhanVien.ValueMember = "Id";
        }
        void ngay_gio()
        {
            int ngay = DateTime.Now.Day;
            int thang = DateTime.Now.Month;
            int nam = DateTime.Now.Year;
            txt_NgayLapPhieu.Text = ngay.ToString() + "/" + thang.ToString() + "/" + nam.ToString();
            txt_NgayChungTu.Text = ngay.ToString() + "/" + thang.ToString() + "/" + nam.ToString();

        }

        private void FrmXuatKho_Load(object sender, EventArgs e)
        {
            ngay_gio();
            GetListNhanVien();
        }
    }
}
